struct Options
{
 WORD sound;
 WORD blackBegin;
 WORD way;
 char deepness[8];
};

class TCornersWin:public TFrameWindow
{
 int blackBegin;
 int sound;
 int deepness;
 int keyboard;
 int first;
 int index;
 TCorners* corners;
 int flag;
 int flagSnd;
 Options options;
 public:
  TCornersWin(TWindow*parent,const char far*title);
  ~TCornersWin();
  void SetupWindow();
  void Play(int,int);
  void Paint(TDC&dc,bool,TRect&);
  void CmRestart();
  void CmUndo();
  void CmBlackBegin();
  void CmDeepness();
  void EvLButtonDown(UINT modKeys,TPoint& point);
  void PlayRolik(int x,int y);
  void EvTimer(UINT timerId);
 DECLARE_RESPONSE_TABLE(TCornersWin);
};

class TCornersApp:public TApplication
{
 public:
  TCornersApp(const char far*name);
  void InitMainWindow();
};
